import request from '@/utils/http/http'

// 获取购物车数据列表
export const reqGetCartList = () => {
  return request.get('/cart/cartList')
}

// 切换商品选中状态
export const reqUpdateCartIsChecked = (skuId, isChecked) => {
  return request.get(`/cart/checkCart/${skuId}/${isChecked}`)
}

// 删除商品
export const reqDelCart = (skuId) => {
  return request.delete(`/cart/deleteCart/${skuId}`)
}
